home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <stdlib.h>
-
- void ag_error(char *message, char *query)
- {
- printf("Content-Type: text/html\n\n");
- printf("<HTML><TITLE>Runtime Error</TITLE>\n");
- printf("<BODY BGCOLOR=\"#ffffff\">\n");
- printf("<H1><IMG SRC=\"/ag/appgen.gif\">Runtime SQL Error</H1>\n");
- printf("An error has occured in your application, the message was:<BR><BR>\n");
- printf("<B><CODE>%s</CODE></B><BR><BR>\n",message);
- printf("The submitted query was:<BR><BR>\n");
- printf("<B><CODE>%s</CODE></B><BR><BR>\n",query);
- printf("The parameters are:<BR><BR>\n");
- printf("<B><CODE>%s</CODE></B></BODY></HTML>\n",getenv("QUERY_STRING"));
- exit(0);
- }
-